package it.avantsoft.ls.gl.command;

import it.avantsoft.ls.base.Configuration;
import it.avantsoft.ls.base.Protocol;
import it.avantsoft.ls.gl.GroupChildHandler;

public abstract class SynchronousCommand extends GroupChildCommand implements Protocol {

    /**
     * Command di ack la cui execute è chiamato dopo la getTimeout()
     */
    protected SynchronousCommand(GroupChildHandler groupChildHandler) {
        super(groupChildHandler);
    }

    public long getTimeout() {
        return Configuration.DEFAULT_SYNC_COMMAND_TIMEOUT;
    }

    public abstract byte getCommandByte();
}
